﻿@using DirectSell.Model.Message
@using Webdiyer.WebControls.Mvc;
@model PagedList<Messages>

<table class="table table-border table-bordered table-hover table-bg table-sort">
    <thead>
        <tr class="text-c">
            @*<th width="25"><input type="checkbox" name="" value=""></th>*@
            <th width="80">序号</th>
            <th width="70">发送方编号</th>
            <th width="70">接收方编号</th>
            <th width="100">内容</th>
            <th width="100">时间</th>
            <th width="70">状态</th>
            <th width="70">操作</th>
        </tr>
    </thead>
    <tbody>
        @{ int i = 0;}
        @foreach (var item in Model)
        {
            <tr class="text-c">
                <td>@(Model.StartItemIndex + i++)</td>
                <td>@item.SendCode</td>
                <td>@item.ReciveCode</td>
                <td class="text-l">
                    <div class="c-999 f-12">
                        <u>@item.SendName</u>
                        <time title="@item.CreateDate" datetime="@item.CreateDate">@item.CreateDate</time>
                        <span class="ml-20">@item.SendPhone</span>
                    </div>
                    <div><u style="cursor:pointer" class="text-primary" onclick="msg_show('@item.Title','/Manager/ReplyList/ShowMsg?id='+'@item.Id')">@item.Title</u> </div>
                </td>
                <td>@item.CreateDate</td>
                @if (item.State == 1)
                {
                    <td class="td-status"><span class="label label-success radius">已读</span></td>
                }
                else
                {
                    <td class="td-status">
                        <span class="label label-danger radius">未读</span>
                    
                    </td>
                }
                <td class="td-manage">
                    <a style="text-decoration:none" onClick="Delete('@item.Id')" title="删除"> <i class="Hui-iconfont">&#xe631;</i></a>
            </tr>
        }
    </tbody>
</table>


